From 7b0a6bf9f416fb5f5af5c8bcf2535913398149ea Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Wed, 22 Nov 2006 14:01:51 +0000 Subject: [PATCH] Stop the kernel and ramdisk from being nuked if the kernel_external bootloader setting is being used. From Jim Fehlig . Signed-off-by: Ewan Mellor --- tools/python/xen/xend/XendDomainInfo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 532ce81264..958c5cf8f8 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1318,7 +1318,7 @@ class XendDomainInfo: self._createDevices() - if self.info['bootloader']: + if self.info['bootloader'] not in [None, 'kernel_external']: self.image.cleanupBootloading() self.info['start_time'] = time.time() @@ -1326,7 +1326,8 @@ class XendDomainInfo: self._stateSet(DOM_STATE_RUNNING) except RuntimeError, exn: log.exception("XendDomainInfo.initDomain: exception occurred") - if self.info['bootloader'] and self.image is not None: + if self.info['bootloader'] not in [None, 'kernel_external'] \ + and self.image is not None: self.image.cleanupBootloading() raise VmError(str(exn)) -- 2.30.2